package com.example.light.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.light.system.entity.userRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Mapper
@Repository
public interface UserRoleMapper extends BaseMapper<userRole> {
    // 批量插入用户与角色id映射
    Integer batchInsertUserRole(@Param("userId") Integer userId, @Param("roleIdSet")ArrayList roleIdSet);
}
